class FollowController < ProtectedController

  def cancel
    follow = Follow.find_by_fensi_id_and_idol_id(current_user.id,params[:idol])
    follow.destroy
    redirect_to "/weibo"
  end

  def follow
    follow = Follow.new
    follow.fensi_id = current_user.id
    follow.idol_id = params[:idol]
    follow.save
    redirect_to "/weibo"
  end

end
